package com.rpp.demo.service.impl;

import com.rpp.demo.entity.User;
import com.rpp.demo.respository.UserRepository;
import com.rpp.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author rpp
 * @Date 2020/12/4 9:55 下午
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserRepository userRepository;

    @Override
    public List<User> findAll() {
        return userRepository.findAll();
    }
}
